package com.wzcl.app.service;

import com.wzcl.app.dao.model.Topic;
import com.wzcl.app.model.common.MyPage;
import com.wzcl.app.model.dto.TopicDto;

import java.util.List;

public interface TopicService extends BaseService<Topic,TopicDto> {

    Topic addTopic(TopicDto topicDto);

    Topic delTopicById(Integer id);

    void updateBasicTopic(TopicDto topicDto);

    void updateTopicKnowledgePoint(TopicDto topicDto);

    Topic getTopicById(Integer id);

    Topic refreshScore(Topic topic);

    List<Topic> getTopicList(TopicDto topicDto);

    MyPage<Topic> getTopicPage(TopicDto topicDto);

    List<Topic> getTopicRandList(TopicDto topicDto);
}
